<template>
  <view class="schedule">
    <view class="header">  
      <image src="/static/schedule-banner.svg" class="banner"/>
    </view>
    <scroll-view class="content" scroll-y>
      <view v-for="(item, index) in schedule" :key="index" class="course-item">
        <view class="course-detail">
          <image :src="item.icon" class="course-icon"/>
          <text>{{ item.name }}</text>
          <text>{{ item.time }}</text>
        </view>
      </view>
    </scroll-view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      schedule: [
        { name: 'Yoga Basics', time: '9:00 - 10:00', icon: '/static/yoga-icon.svg' },
        { name: 'Advanced Pilates', time: '10:30 - 11:30', icon: '/static/pilates-icon.svg' },
        // 更多课程...
      ]
    };
  }
};
</script>

<style scoped>
.schedule {
  background-color: #fce4ec;
  height: 100vh;
}

.header {
  height: 200px;
  display: flex;
  align-items: center;
}

.banner {
  width: 100%;
  height: 100%;
}

.content {
  flex: 1;
}

.course-item {
  background-color: #ffccbc;
  margin: 10px;
  padding: 20px;
  border-radius: 10px;
}

.course-detail {
  display: flex;
  align-items: center;
}

.course-icon {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}
</style>